package service.impl;

import entity.Usershoppingcat;
import mapper.UsershoppingcatMapper;
import org.springframework.stereotype.Component;
import service.Usershopppingcatservice;

import javax.annotation.Resource;
import java.util.List;

@Component
public class Usershopppingcatserviceimpl implements Usershopppingcatservice {
    @Resource
    UsershoppingcatMapper usershoppingcatMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return usershoppingcatMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Usershoppingcat record) {
        return usershoppingcatMapper.insert(record);
    }

    @Override
    public int insertSelective(Usershoppingcat record) {
        return usershoppingcatMapper.insertSelective(record);
    }

    @Override
    public Usershoppingcat selectByPrimaryKey(Integer id) {
        return usershoppingcatMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Usershoppingcat record) {
        return usershoppingcatMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Usershoppingcat record) {
        return usershoppingcatMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Usershoppingcat> listbycat(Integer id) {
        return usershoppingcatMapper.listbycat(id);
    }
}
